import { defineStore } from 'pinia';
import { ref } from 'vue';

const useOpenMenuStore = defineStore('openMenu', () => {
  const isMenuOpen = ref(false);

  const setMenuStatus = (isMenuOpenValue: boolean) => {
    isMenuOpen.value = isMenuOpenValue;
  };

  return {
    isMenuOpen,
    setMenuStatus
  };
});

export default useOpenMenuStore;
